package com.ndky.Demo2;

public class MyClass {
    public int x ;
    public static void main(String[] args) {
        MyClass myObj = new MyClass();
        int y = 40;
        myObj.x = y;
        System.out.println(myObj.x);
    }
}
// 输出 40
